home *** CD-ROM | disk | FTP | other *** search
- /*
- * This program is the CONFIDENTIAL and PROPRIETARY property
- * of FairCom(R) Corporation. Any unauthorized use, reproduction or
- * transfer of this computer program is strictly prohibited.
- *
- * Copyright (c) 1984 - 1994 FairCom Corporation.
- * This is an unpublished work, and is subject to limited distribution and
- * restricted disclosure only. ALL RIGHTS RESERVED.
- *
- * RESTRICTED RIGHTS LEGEND
- * Use, duplication, or disclosure by the Government is subject to
- * restrictions set forth in subparagraph (c)(1)(ii) of the Rights in
- * Technical Data and Computer Software clause at DFARS 252.227-7013.
- * FairCom Corporation, 4006 West Broadway, Columbia, MO 65203.
- *
- * c-tree PLUS(tm) Version 6.4
- * Release B
- * October 19, 1994
- */
-
- #ifdef PROTOTYPE
- #ifdef ctMIRROR
- extern NINT ctmirlst(pCTFILE ctnum,NINT mirswt);
- #endif
- extern NINT ctqchkp(pTEXT sp);
- extern VOID ctqchkpstop(VOID);
- extern VOID cttrnfre(VOID);
- extern COUNT clnleaf(COUNT filno);
- extern VOID ctinvshd(pSHADLST sl);
- extern UCOUNT ctsumlog(pTRANDSC tp);
- extern NINT ctsumchk(pCTFILE ctnum,VRLEN vlen,LONG logpos,pTRANDSC tp);
- extern VOID cthdrword(COUNT filno,pTEXT buf,NINT len,NINT newone);
- extern COUNT ctlogpidx(pCTFILE knum,COUNT memb,pUTEXT pvbyte);
- extern COUNT ctlogiidx(pCTFILE dnum,COUNT keyno,COUNT idxno,pIFIL ifilptr);
- extern COUNT ctloghwrd(pCTFILE knum,pTEXT oldwrd,pTEXT newwrd,COUNT offset,NINT len);
- extern pTEXT ctgetshd(pVOID bufadr,pSHADLST sl,VRLEN iosize);
- extern COUNT ctputshd(pSHADLST sl,pTEXT bufadr,VRLEN iosize);
- extern VOID ctfreshd(pSHADLST sl);
- extern VOID ctputtenv(NINT sOWNR,pTEXT envbuf,VRLEN len);
- extern NINT ctmrkact(NINT cln_mode,LONG mtran,pTREBUF buffer);
- extern NINT ctintlog(pCTFILE ctnum);
- extern LONG ctprvlog(pCTFILE ctnum);
- extern NINT ctstrtran(pCTFILE ctnum);
- extern VOID ctendtran(COUNT serr);
- extern pTEXT ctlname(pTEXT lognam,LONG ln,NINT filetype);
- #ifndef comparu
- extern VRLEN comparu(pTEXT np,pTEXT op,VRLEN remlen);
- #endif
- extern COUNT ctlgtorc(LONG tfil,NINT must_exist);
- extern VOID ctstund(NINT mode,LONG tranno,LONG lp,LONG ep);
- extern NINT ctputimg(COUNT testtyp,NINT typimage,COUNT tranfil,LONG tranpos,pTEXT bp,VRLEN vlen);
- extern VRLEN ctdiff(pTEXT np,VRLEN nl,pTEXT op,VRLEN ol,ppTEXT dp,pVRLEN dspc);
- extern VOID cttranbf(pTREBUF buf,LONG old,LONG newone);
- extern COUNT ctacttrn(NINT ownr,LONG tran_no,pNINT povrflag);
- extern COUNT cttrnalc(COUNT nusers,COUNT nfiles);
- extern VRLEN cttrnlen(pTRANDSC tp);
- extern COUNT prtlog(pLONG plogpos,COUNT mode,pLONG plogser,COUNT tt,LONG fpos,LONG tn);
- extern COUNT srchshd(pVOID phs,COUNT ownr,LONG recbyt,COUNT filno,VRLEN iosize,pVOID bufadr,ppSHADLST psl,COUNT mode,ppSHADLST lsl,pVRLEN pread);
- extern NINT updtshd(COUNT ownr,LONG recbyt,COUNT filno,VRLEN iosize,pVOID bufadr,COUNT mode);
- extern NINT testshd(COUNT loc);
- extern NINT prtshd(COUNT own);
- extern LONG ctupdlg(COUNT updmod,COUNT trnmod,LONG trnval);
- extern VOID fusrclr(COUNT mode,NINT sOWNR);
- extern LONG ctwrtlog(pLONG ep,pTRANDSC tp,pVOID dp);
- #ifdef VINES
- extern NINT dbuglog(LONG pos,COUNT fil,pTEXT tp,UCOUNT class);
- #endif
- extern COUNT ctputhdr(pCTFILE ctnum);
- extern COUNT ctlogext(NINT sOWNR,LONG pntr,pCTFILE ctnum,pVOID tp,NINT len,NINT mode);
- extern COUNT ctlogcmp(pCTFILE ctnum,pCTFILE mtnum,pTEXT hdrbuf);
- extern COUNT ctwrtcmp(pCTFILE ctnum,pCTFILE mtnum,pTEXT hdrbuf);
- extern VOID ctlgqnod(NINT ownr,pCTFILE knum,LONG node);
- extern COUNT ctlogkey(COUNT mode,pCTFILE knum,pTEXT target,LONG recbyt);
- extern COUNT ctlogopn(COUNT filno,pTEXT filnam,pCTFILE ctnum,NINT opnmod);
- extern COUNT ctchkpnt(NINT mode,LONG cmode);
- extern COUNT ctlogcfil(NINT,COUNT);
-
- #if 0
-
- static LONG getlogfil(pCTFILE ctnum,VRLEN vlen,pVRLEN plen,pCOUNT pflag);
- static COUNT clshdr(PFAST pCTFILE ctnum);
- static COUNT chkfdel(LONG tfil,LONG lpos,NINT tfil_mode,NINT rcvtst,NINT fwdflg);
- static NINT ctalcshd(pSHADLST sl,VRLEN iosize);
- static pCTFILE rcvsi(pCTFILE lgnum);
- static VOID ctsetexc(pTREBUF buf,COUNT nkv);
- static NINT rcvhdrupd(pCTFILE2 ttnum,pCTFILE ctnum,VRLEN vlen,LONG pos);
- static NINT put_lgtorc(LONG tfil,COUNT lgn);
- static COUNT tread(LONG logpos,pTRANDSC ptran,pCOUNT powner);
- static COUNT wrtlnk(pSHADLST sl);
- #ifdef MULTITRD
- static VOID setkeypos(COUNT keyno,LONG node,COUNT elm,pVOID kp,COUNT keylen);
- #endif
- #ifndef CTBOUND
- static pTEXT getkeyptr(pCTFILE knum,pTEXT kp);
- #endif
- static NINT hashshd(COUNT filno,UINT byt);
- static NINT tlogbuf(LONG retval,pTEXT tp,VRLEN size);
- static COUNT chkpnt(LONG cmode);
- static NINT chksavpnt(pSHADLST sl);
- static COUNT forcel(LONG tran_no,pSHADLST sl,pSHADLST fsl,pTRANDSC ptran,NINT endtype);
- static COUNT forcei(pSHADLST fsl,LONG tran_no,NINT endtype);
- static COUNT force(LONG tran_no,NINT endtype,pLONG plp,pLONG pep);
- static VOID clrshdlst(NINT mode,LONG tran,COUNT lokmod);
- static pTEXT tranent(NINT sOWNR,pVRLEN pvlen);
- /* ******************************* */
- static COUNT ctrcvopn(pTEXT filnam,LONG tfil,pCTFILE ctnum,LONG tlen,LONG hp,pLONG fid,LONG logpos);
- static VOID trancls(COUNT mode,COUNT filno);
- static COUNT tranmgt(pTRANDSC t,pTEXT logkey,pTEXT bp,COUNT updmod,COUNT trnmod,LONG trnval,pLONG pundos,pLONG predos,pLONG pixdos,pLONG pdtdos);
- static COUNT transcn(COUNT updmod,COUNT trnmod,LONG trnval,pLONG logend,
- pLONG logpos,pLONG plogpos,pLONG plognum,pLONG undos,
- pLONG redos,pLONG ixdos,pLONG dtdos,pVRLEN ploglen,
- pLONG pbegser,pLONG pendser);
- static VOID adjnent(VRLEN vlen,NINT mode,pLONG bp);
- static LONG getprvlog(pCTFILE ctnum);
- static COUNT tranund(NINT updmod,LONG logpos,pLONG undos);
- static COUNT trandat(LONG begser,LONG logpos,pLONG dtdos);
- static COUNT tranidx(LONG begser,LONG logpos,pLONG ixdos);
- static COUNT tranred(NINT updmod,LONG begser,LONG logpos,LONG endser,LONG logend,LONG plogpos,pLONG redos);
- static LONG tranupd(COUNT updmod,COUNT trnmod,LONG trnval);
- static COUNT tranrcv(LONG blogpos,LONG plogpos);
- /* ******************************* */
-
- #endif /* if 0 (temporary) */
-
- extern NINT ctNINTlog(pCTFILE ctnum);
- extern NINT ctflslog(pCTFILE ctnum,COUNT trntyp,NINT sOWNR);
- extern COUNT tranovr(NINT mode,COUNT lokmod);
- extern NINT ctlgfile(NINT op_code,pCTFILE ctnum,LONG begtrn,VRLEN beglen,LONG logser,pLONG chkpos);
- extern COUNT ctstrfil(VOID );
- extern COUNT cttrnmem(pCTFILE ctnum,VRLEN vlen,pVRLEN pvspc,ppTEXT pbp,LONG logpos);
- extern NINT ctlgswitch(pCTFILE ctnum,NINT op_code,LONG chgser);
- extern LONG TRANBAK(COUNT trnmod,LONG trnval);
- extern LONG TRANFWD(COUNT trnmod,LONG prvpos);
-
- #else /* PROTOTYPE */
-
- #ifdef ctMIRROR
- extern NINT ctmirlst();
- #endif
- extern NINT ctqchkp();
- extern VOID ctqchkpstop();
- extern VOID cttrnfre();
- extern COUNT clnleaf();
- extern VOID ctinvshd();
- static COUNT clshdr();
- extern UCOUNT ctsumlog();
- extern NINT ctsumchk();
- extern VOID cthdrword();
- extern COUNT ctlogpidx();
- extern COUNT ctlogiidx();
- extern COUNT ctloghwrd();
- static COUNT chkfdel();
- extern pTEXT ctgetshd();
- extern COUNT ctputshd();
- static NINT ctalcshd();
- extern VOID ctfreshd();
- extern VOID ctputtenv();
- static pCTFILE rcvsi();
- static VOID ctsetexc();
- extern NINT ctmrkact();
- extern NINT ctintlog();
- extern LONG ctprvlog();
- extern NINT ctstrtran();
- extern VOID ctendtran();
- static NINT rcvhdrupd();
- extern pTEXT ctlname();
- #ifndef comparu
- extern VRLEN comparu();
- #endif
- extern COUNT ctlgtorc();
- static NINT put_lgtorc();
- static COUNT tread();
- extern VOID ctstund();
- static COUNT wrtlnk();
- #ifdef MULTITRD
- static VOID setkeypos();
- #endif
- #ifndef CTBOUND
- static pTEXT getkeyptr();
- #endif
- static NINT hashshd();
- extern NINT ctputimg();
- extern VRLEN ctdiff();
- extern VOID cttranbf();
- extern COUNT ctacttrn();
- extern COUNT cttrnalc();
- static LONG getlogfil();
- extern VRLEN cttrnlen();
- extern COUNT prtlog();
- extern COUNT srchshd();
- extern NINT updtshd();
- extern NINT testshd();
- extern NINT prtshd();
- extern LONG ctupdlg();
- extern VOID fusrclr();
- static NINT tlogbuf();
- extern LONG ctwrtlog();
- #ifdef VINES
- extern NINT dbuglog();
- #endif
- extern COUNT ctputhdr();
- extern COUNT ctlogext();
- extern COUNT ctlogcmp();
- extern COUNT ctwrtcmp();
- extern VOID ctlgqnod();
- extern COUNT ctlogkey();
- extern COUNT ctlogopn();
- static COUNT chkpnt();
- extern COUNT ctchkpnt();
- static NINT chksavpnt();
- static COUNT forcel();
- static COUNT forcei();
- extern NINT ctNINTlog();
- extern NINT ctflslog();
- static COUNT force();
- static VOID clrshdlst();
- static pTEXT tranent();
- extern COUNT tranovr();
- /* ******************************* */
- extern NINT ctlgfile();
- extern COUNT ctstrfil();
- static COUNT ctrcvopn();
- static VOID trancls();
- static COUNT tranmgt();
- extern COUNT cttrnmem();
- static COUNT transcn();
- static VOID adjnent();
- extern NINT ctlgswitch();
- static LONG getprvlog();
- static COUNT tranund();
- static COUNT trandat();
- static COUNT tranidx();
- static COUNT tranred();
- static LONG tranupd();
- extern LONG TRANBAK();
- extern LONG TRANFWD();
- static COUNT tranrcv();
- extern COUNT ctlogcfil();
- /* ******************************* */
-
- #endif /* PROTOTYPE */
-